home *** CD-ROM | disk | FTP | other *** search
/ Collection of Tools & Utilities / Collection of Tools and Utilities.iso / system / int24.zip / DEMO.C < prev    next >
Text File  |  1986-02-19  |  661b  |  25 lines

  1. /*
  2. ┌────────────────────────────────────────────────────────────────────────────┐
  3. │ Title   : Critical Interrupt 24 handler                     │
  4. │ Purpose : Avoid those pesky Abort, Retry, Ignore messages             │
  5. │                                         │
  6. │ written by Jack A. Zucker (Jaz) (301) 794-5950, (301) 794-8763         │
  7. └────────────────────────────────────────────────────────────────────────────┘
  8. */
  9.  
  10. #include <jaz.h>
  11. #include <dos.h>
  12. main()
  13. {
  14.  
  15.   TFAT wfat;
  16.   int error;
  17.  
  18.   insint24();
  19.  
  20.   jzdskfre(&wfat,1);        /* return free diskette space and fat info */
  21.  
  22.   if (error = int24err()) printf("\nError Code: %d",error);
  23.   else printf("\n%ld bytes free",wfat.free);
  24. }
  25.